package com.example.commons.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 部门用户关联表
 * </p>
 *
 * @author lk
 * @since 2024-08-27
 */
@TableName("correlation_department_user")
@ApiModel(value = "CorrelationDepartmentUser对象", description = "部门用户关联表")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CorrelationDepartmentUser implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Integer id;

    @ApiModelProperty("部门id")
    private Integer deptId;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("创建用户名")
    private String createUserName;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("更新用户名")
    private String updateUserName;

    @ApiModelProperty("创建用户id")
    private Long createUserId;

    @ApiModelProperty("更新用户id")
    private Long updateUserId;

    @ApiModelProperty("删除标志")
    private Byte deleteFlag;
}
